export default{
  install (Vue, options) {
    Vue.prototype.baseUrl = 'http://es.11cm.com.cn'
    Vue.prototype.convertToBina = function (dataURI) {
      var byteString = window.atob(dataURI.split(',')[1])
      var ab = new ArrayBuffer(byteString.length)
      var ia = new Uint8Array(ab)
      for (var i = 0; i < byteString.length; i++) {
        ia[i] = byteString.charCodeAt(i)
      }
      var bb = new window.Blob([ab])
      return bb
    }
  }
}
